﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebChat.Models;

namespace WebChat.Services.Models
{
    public class UserRegisterModel
    {
        public string Username { get; set; }

        public string Password { get; set; }

        public User ToUser()
        {
            var user = new User
            {
                Username = this.Username,
                Password = this.Password,
            };

            return user;
        }
    }
}